#ifndef __LGUIWAVEEDITOR_H__
#define __LGUIWAVEEDITOR_H__

#include "LGUIWindow.h"
#include "SOscillator.h"



class LGUIWaveEditor : public LGUIWindow  
{
  bool dragging;
  float lastF;
  int lastPos;
public:
  SWavetable *table;
  LGUIWaveEditor(int _x, int _y);
	virtual ~LGUIWaveEditor();

  void draw(int xoff, int yoff);
  void penDown(int px, int py);
  void penMove(int px, int py, bool pressed);
  void penUp  (int px, int py);
  void setWave(SWavetable *_table)
  {
    table=_table;
    redraw();
  }
};


#endif //__LGUIWAVEEDITOR_H__